<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script th:src="@{/static/js/jquery.min.js}"></script>
</head>
<body>
<a th:href="@{/a}">请求</a>
<table>
    <tr>
        <td><input type="text" name="username"></td>
        <td><input type="password" name="password"></td>
        <td><input type="button" id="btn"></td>
    </tr>
</table>

<script>
    $("#btn").click();


    $.ajax({
         type:"POST",
         url:"/a",
        data:""
    });
</script>
</body>
</html>